<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="novatar" uri="/novatar-tags"%><%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<novatar:head title="demo2.name"></novatar:head>
<novatar:easyui />
<link href="${styles}/sample2.css?v=${version}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${scripts}/sample2.js?v=${version}"></script>
<script type="text/javascript">
    window.contextPath = "${contextPath}";
</script>
</head>
<body id="bodyLayOut" class="easyui-layout">
    <div data-options="region:'west',width: 250,title: ' '">
        <div>
            <div style="padding-top: 5px;">
                <ul id="devOrgTree">
                </ul>
            </div>
        </div>
    </div>
    <div id="conditionDiv"
        data-options="region:'north',split: false, collapsible:false, minHeight:48">
        <div id="searchCondition">
            <form method="post" id="queryForm">
                <div>
                    <span i18n="devBonus.devOrg">研发小组</span>
                    &nbsp;&nbsp;
                    <input type="hidden" name="devOrgId" id="search_devOrgId">
                    <input class="textbox" type="text" id="search_devOrgName" name="devOrgName" style="width: 140px" readonly="readonly">
                </div>
                <div>
                    <span i18n="devBonus.people">人员</span>&nbsp;<span i18n="people.name">姓名</span>
                    &nbsp;&nbsp;
                    <input class="textbox" type="text" name="peopleId" id="search_peopleId" style="width: 160px">
                </div>
                <div>
                    <span i18n="devBonus.levelTo">评级</span>
                    &nbsp;&nbsp;
                    <select class="easyui-combobox" name="levelTo" id="search_levelTo" style="width:140px;" data-options="panelHeight:'auto'">
                    </select> 
                </div>
                <div id="query-toolbar">
                    <a href="javascript:void(0)" class="easyui-linkbutton"
                        iconCls="icon-search" plain="true" onClick="onSearch()">
                        <span i18n="search">查询</span>
                    </a>
                    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-revert"
                        plain="true" onClick="onSearchReset()">
                        <span i18n="reset">重置</span>
                    </a>
                </div>
            </form>
        </div>
    </div>
    <div data-options="region:'center'">
        <table id="devBonusGrid" style="height: 100%;">
        </table>
    </div>
    <div class="hidden">
        <div id="datagrid-toolbar">
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-add',plain:true," onClick="onAdd()">
                <span i18n="add">新增</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-remove',plain:true" onClick="onDel()">
                <span i18n="delete">删除</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
                data-options="iconCls:'icon-edit',plain:true" onClick="onEdit()">
                <span i18n="edit">修改</span>
            </a>
        </div>
        <div id="dialog-toolbar">
            <a href="javascript:void(0)" class="easyui-linkbutton" onClick="onSave()"
                data-options="iconCls:'icon-save',plain:true">
                <span i18n="save">保存</span>
            </a>
            <a href="javascript:void(0)" class="easyui-linkbutton" onClick="onReset()"
                data-options="iconCls:'icon-revert',plain:true">
                <span i18n="reset">重置</span>
            </a>
        </div>
        <div id="devBonusDialog"
            style="text-align: center; width: 520px; height: auto" modal="true"
            maximizable="false" data-options="toolbar: '#dialog-toolbar',closed:true">
            <form id="devBonusForm" method="post">
                <table style="width:100%;margin-top:5px;margin-bottom:5px;">
                    <tr>
                        <td class="fieldlabel"><span i18n="devBonus.devOrg">研发小组</span></td>
                        <td align="left" style="width:180px">
                            <input class="easyui-validatebox textbox" name="devOrgName" id="edit_devOrgName" style="width: 140px"
                                readonly="readonly">
                        </td>
                        <td class="fieldlabel" style="width:80px"><span i18n="devBonus.people">人员</span><span class="red">*</span></td>
                        <td align="left" style="width:140px">
                            <select name="peopleId" id="edit_peopleId" style="width:140px;" data-options="panelHeight:'auto'"></select>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldlabel"><span i18n="devBonus.money">奖金数量</span><span class="red">*</span></td>
                        <td align="left" style="width:180px">
                            <input class="easyui-validatebox easyui-numberspinner" name="money" style="width: 146px"
                                required="required" data-options="min:10000,max:150000">
                        </td>
                        <td class="fieldlabel" style="width:80px"><span i18n="devBonus.levelTo">评级</span><span class="red">*</span></td>
                        <td align="left" style="width:140px">
                            <select name="levelTo" id="edit_levelTo" style="width:140px;" data-options="panelHeight:'auto'">
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" >
                            <fieldset style="margin:3px;height:50px;border:1px solid #b5b8c8">
                                <legend align="left"><span>奖项授予</span></legend>
                                <input id="dialog_award1" type="checkbox" name="award1" >
                                <label for="dialog_award1" i18n="devBonus.award1">是否授予奖项1</label>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <input id="dialog_award2" type="checkbox" name="award2" >
                                <label for="dialog_award2" i18n="devBonus.award2">是否授予奖项2</label>
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <input id="dialog_award3" type="checkbox" name="award3" >
                                <label for="dialog_award3" i18n="devBonus.award3">是否授予奖项3</label>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td class="fieldlabel"><span i18n="devBonus.note">评语</span></td>
                        <td align="left" colspan="3">
                            <textarea wrap="hard" rows="4" name="note"
                                class="easyui-validatebox textbox" style="width: 404px; height:80px"
                                data-options="validType:['length[0,200]','anyButSensitive']"></textarea>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</body>
</html>